﻿using System;

namespace DesignPattern
{
    public interface IBall
    {
    }

    public interface IFactory
    {
        IBall CreateProduct();
    }

    public class Football : IBall
    {

    }

    public class FootFactory : IFactory
    {
        public IBall CreateProduct()
        {
            return new Football();
        }
    }
}
